package com.jch.learn.model;

import lombok.Data;

@Data
public class AppConf {

    public Server server;
    public NacosRegister nacosRegister;
    public Database database;

    @Data
    public static class Server {
        public int port;
        public String name;
    }

    @Data
    public static class NacosRegister{
        public String serviceName;
        public String groupName;
        public int servicePort;
    }

    @Data
    public static class Database{
        public String url;
        public String username;
        public String password;
        public String driverClassName;
    }

}
